import { createSlice } from "@reduxjs/toolkit";

let CartSlice = createSlice({
    name: 'cart',
    initialState: {
        cartlist: []
    },
    reducers: {
        addshop(state, action) {
            state.cartlist.push(action.payload)
        }
    }
})

export const {addshop} = CartSlice.actions
export default CartSlice.reducer